<?php
   class CustomersController extends AppController
   {
       var $name = 'Customers';
       function index()
       {
            $this->set('customers', $this->Customer->findAll());
       }
	   function add()
       {
           if (!empty($this->data))
           {
               if ($this->Customer->save($this->data))
               {
                   $this->flash('Your customer has been saved.','/customers');
               }
           }
       }

   }
   ?>
